package com.xhl.mybatis.dto;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author CazCen
 * @Date 2021/12/15 19:33
 */
@Data
@ApiModel
//@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class UserDTO implements Serializable {
    private static final long serialVersionUID = 1325169985324320921L;

    @ApiModelProperty("用户id")
    private Integer id;

    @ApiModelProperty("用户名称")
    private String name;

    @ApiModelProperty("用户密码")
    private String pwd;

    @JsonProperty("user_address")
    private String userAddress;
}
